#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo02.py
@time:2021/06/30
"""

def test01():
    ...

    print('222')
    print('111')
    print(int('123', 10))


def base(b=10):
    def strToInt(s):
        return int(s, b)
    return strToInt


if __name__ == '__main__':
    pass
    # test01()
    ba = base(5)
    print(ba('1234'))